package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 优惠卷管理对象 coupon_info
 * 
 * @author ruoyi
 * @date 2024-10-19
 */
public class CouponInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 优惠卷信息表ID */
    private Long couponInfoId;

    /** 优惠卷名字 */
    @Excel(name = "优惠卷名字")
    private String name;

    /** 优惠卷类型 */
    @Excel(name = "优惠卷类型")
    private String couponType;

    /** 折扣 */
    @Excel(name = "折扣")
    private BigDecimal discount;

    /** 使用门槛 */
    @Excel(name = "使用门槛")
    private BigDecimal conditionAmount;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expireTime;

    /** 优惠券描述 */
    @Excel(name = "优惠券描述")
    private String description;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 删除标记 */
    @Excel(name = "删除标记")
    private Long isDeleted;

    /** 最大优惠金额 */
    @Excel(name = "最大优惠金额")
    private BigDecimal maxFavorableAmount;

    /** 生效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date takeEffectTime;

    /** 发行数量 */
    @Excel(name = "发行数量")
    private Long releaseNum;

    public void setCouponInfoId(Long couponInfoId) 
    {
        this.couponInfoId = couponInfoId;
    }

    public Long getCouponInfoId() 
    {
        return couponInfoId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCouponType(String couponType) 
    {
        this.couponType = couponType;
    }

    public String getCouponType() 
    {
        return couponType;
    }
    public void setDiscount(BigDecimal discount) 
    {
        this.discount = discount;
    }

    public BigDecimal getDiscount() 
    {
        return discount;
    }
    public void setConditionAmount(BigDecimal conditionAmount) 
    {
        this.conditionAmount = conditionAmount;
    }

    public BigDecimal getConditionAmount() 
    {
        return conditionAmount;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setExpireTime(Date expireTime) 
    {
        this.expireTime = expireTime;
    }

    public Date getExpireTime() 
    {
        return expireTime;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setIsDeleted(Long isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() 
    {
        return isDeleted;
    }
    public void setMaxFavorableAmount(BigDecimal maxFavorableAmount) 
    {
        this.maxFavorableAmount = maxFavorableAmount;
    }

    public BigDecimal getMaxFavorableAmount() 
    {
        return maxFavorableAmount;
    }
    public void setTakeEffectTime(Date takeEffectTime) 
    {
        this.takeEffectTime = takeEffectTime;
    }

    public Date getTakeEffectTime() 
    {
        return takeEffectTime;
    }
    public void setReleaseNum(Long releaseNum) 
    {
        this.releaseNum = releaseNum;
    }

    public Long getReleaseNum() 
    {
        return releaseNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("couponInfoId", getCouponInfoId())
            .append("name", getName())
            .append("couponType", getCouponType())
            .append("discount", getDiscount())
            .append("conditionAmount", getConditionAmount())
            .append("amount", getAmount())
            .append("expireTime", getExpireTime())
            .append("description", getDescription())
            .append("status", getStatus())
            .append("isDeleted", getIsDeleted())
            .append("maxFavorableAmount", getMaxFavorableAmount())
            .append("takeEffectTime", getTakeEffectTime())
            .append("releaseNum", getReleaseNum())
            .toString();
    }
}
